/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author ylz
 */
@Entity
@Table(name = "news_k16menuitem")
//@NamedQueries({@NamedQuery(name = "NewsK16MenuItem.findAll", query = "SELECT n FROM NewsK16MenuItem n"), @NamedQuery(name = "NewsK16MenuItem.findById", query = "SELECT n FROM NewsK16MenuItem n WHERE n.id = :id"), @NamedQuery(name = "NewsK16MenuItem.findByItemname", query = "SELECT n FROM NewsK16MenuItem n WHERE n.itemname = :itemname"), @NamedQuery(name = "NewsK16MenuItem.findByItemtext", query = "SELECT n FROM NewsK16MenuItem n WHERE n.itemtext = :itemtext")})
public class NewsK16MenuItem implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Integer id;
    @Column(name = "itemname")
    private String itemname;
    @Column(name = "itemtext")
    private String itemtext;
    @Column(name = "normalicon")
    private String normalicon;
    @Column(name = "focusicon")
    private String focusicon;
    @Column(name = "appid")
    private Integer appid;
    @Column(name = "appparam")
	private String appparam;
    @Column(name = "apptype")
	private String apptype;
    @Column(name = "appparam1")
	private String appparam1;
    @Column(name = "appparam2")
	private String appparam2;
    
    private NewsK16MenuItemOrder menuItemOrder;
    
    public NewsK16MenuItemOrder getMenuItemOrder() {
		return menuItemOrder;
	}

	public void setMenuItemOrder(NewsK16MenuItemOrder menuItemOrder) {
		this.menuItemOrder = menuItemOrder;
	}

	public NewsK16MenuItem() {
    }

    public NewsK16MenuItem(Integer id) {
        this.id = id;
    }

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getItemname() {
		return itemname;
	}

	public void setItemname(String itemname) {
		this.itemname = itemname;
	}

	public String getItemtext() {
		return itemtext;
	}

	public void setItemtext(String itemtext) {
		this.itemtext = itemtext;
	}

	public String getNormalicon() {
		return normalicon;
	}

	public void setNormalicon(String normalicon) {
		this.normalicon = normalicon;
	}

	public String getFocusicon() {
		return focusicon;
	}

	public void setFocusicon(String focusicon) {
		this.focusicon = focusicon;
	}

	public Integer getAppid() {
		return appid;
	}

	public void setAppid(Integer appid) {
		this.appid = appid;
	}

	public String getAppparam() {
		return appparam;
	}

	public void setAppparam(String appparam) {
		this.appparam = appparam;
	}

	public String getApptype() {
		return apptype;
	}

	public void setApptype(String apptype) {
		this.apptype = apptype;
	}

	public String getAppparam1() {
		return appparam1;
	}

	public void setAppparam1(String appparam1) {
		this.appparam1 = appparam1;
	}

	public String getAppparam2() {
		return appparam2;
	}

	public void setAppparam2(String appparam2) {
		this.appparam2 = appparam2;
	}

	@Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof NewsK16MenuItem)) {
            return false;
        }
        NewsK16MenuItem other = (NewsK16MenuItem) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.NewsK16MenuItem[id=" + id + "]";
    }

}
